home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperHackers.cpt / Hyper-Hackers Queue 1.0 / card_33922.txt < prev    next >
Text File  |  1989-02-26  |  2KB  |  65 lines

  1. -- card: 33922 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3797
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10.  
  11. From: ns@CAT.CMU.EDU (Nicholas Spies)
  12.  
  13. Date: 8 Mar 88 16:04:38 GMT
  14.  
  15. Is there any way to determine whether the contents of a field can be
  16. evaluated as a numeric expression (with "the value") without having it
  17. put up a dialog when the value can't be calculated? It would be nice to
  18. be able to let scripts deal with such cases if "the result" returned "Not
  19. a value".
  20.  
  21. This might be handled by letting the HyperTalk programmer set system state
  22. variables to change default system actions within a handler, much as "set
  23. lockscreen to xx" works now. Giving commands properties that would reset
  24. to the default behavior between handlers would seem to offer a means to
  25. add new features at will while retaining compatability with current stacks.
  26. Begin able to say 
  27.  
  28.     set reportError of value to false
  29.  
  30. to turn off its default dialog response within a handler would allow much
  31. flexibility while retaining readable code.
  32.  
  33. Imagine also being able to say 
  34.  
  35.     set delimiter of word to ";" - or anything else
  36.  
  37. for parsing or 
  38.  
  39.     set select of find to true
  40.  
  41. to cause find to leave what it found in "the selection" rather than just
  42. highliting with a frame. Or how about
  43.  
  44.     set single of line to true
  45.  
  46. to cause "the line" to return one line of text rather than text to the next
  47. carriage return. (This actually might be better as a settable property of
  48. text fields). Or how about
  49.  
  50.     set fullLine of sort to true
  51.  
  52. to cause sort to base its action on a full line of text rather than
  53. obligating the programmer to concatenate strings to get this effect.
  54.  
  55. The alternative to this or some comparable means of extending HyperTalk is
  56. the chaos of having to write or depend on home-built XCMDs and XFNCs of
  57. unknown reliability. (Speaking of this, does Apple have any plans for
  58. creating a library of XCMDs and XFNCs; it would seem to be at least as
  59. important as the registration of font names...)
  60.  
  61.  
  62.  
  63. -- part contents for background part 45
  64. ----- text -----
  65. Re: the target